package com.xbongbong.paas.domain.entity;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/10/30 14:42
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ProLinkBusinessEntity extends Entity {

    private static final long serialVersionUID = 5711093389659998740L;
    /**
     * 主键
     */
    private Long id;

    /**
     * 公司id
     */
    private String corpid;

    /**
     * 当前表的attr
     */
    private String attr;

    /**
     * 当前表的id
     */
    private Long formId;
    /**
     * 当前表的业务类型
     */
    private Integer businessType;
    /**
     * 关联业务的表单id
     */
    private Long linkFormId;
    /**
     * 关联业务表单的业务类型
     */
    private Integer linkBusinessType;

    /**
     * 显示的字段
     */
    private String field;
    /**
     * 搜索条件
     */
    private String condition;

    /**
     * 创建者id
     */
    private String creatorId;
    /**
     * 创建时间时间戳
     */
    private Long addTime;
    /**
     * 更新时间时间戳
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;

    public ProLinkBusinessEntity() {
        del = DelEnum.NORMAL.getDel();
    }

    public ProLinkBusinessEntity(String corpid, String attr, Long formId, Integer businessType, Long linkFormId, Integer linkBusinessType) {
        this.attr = attr;
        this.corpid = corpid;
        this.formId = formId;
        this.businessType = businessType;
        this.linkFormId = linkFormId;
        this.linkBusinessType = linkBusinessType;
        this.del = DelEnum.NORMAL.getDel();
    }
}
